PROJECT(TestApp)


include_directories(
    "${CMAKE_CURRENT_SOURCE_DIR}/include"
    "${MATH_INCLUDE_DIR}"
	"${ObjLoader_SOURCE_DIR}/include"
	"${Rasterizer_SOURCE_DIR}/include"
	"${ScanLineRasterizer_SOURCE_DIR}/include"
	"${ScanLineRasterizerMT_SOURCE_DIR}/include"
) 
 
file(GLOB math_header include/[^.]*.h include/[^.]*.hpp)
source_group("include" FILES ${math_header})

file(GLOB math_sources src/[^.]*.cpp)
source_group("source" FILES ${math_sources})

set(src ${math_header} ${math_sources})

add_executable(${PROJECT_NAME} ${src} )

target_link_libraries(${PROJECT_NAME} ${MATH_LIBRARY}) 
target_link_libraries(${PROJECT_NAME} ObjLoader) 
target_link_libraries(${PROJECT_NAME} Rasterizer)
target_link_libraries(${PROJECT_NAME} ScanLineRasterizer)
target_link_libraries(${PROJECT_NAME} ScanLineRasterizerMT)
